package com.usian.apis.admin;

import com.usian.model.admin.dtos.ChannelDto;
import com.usian.model.admin.pojos.AdChannel;
import com.usian.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "频道管理", tags = "channel", description = "频道管理API")
public interface AdChannelControllerApi {
    /**
     * 根据名称分页查询频道列表
     *
     * @param dto
     * @return
     */
    @ApiOperation(value = "查询频道信息", notes = "根据名称分页查询频道列表")
    ResponseResult findByNameAndPage(ChannelDto dto);

    ResponseResult inster(AdChannel channel);

    ResponseResult update(AdChannel adChannel);

    ResponseResult deletById(Integer id);
    /**
     * 查询所有频道
     * @return
     */
    public ResponseResult findAll();


}
